﻿/* Created by: Vinnie
 * Contact:  */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TravelExpertsManagementConsole
{
    class Booking
    {
        DateTime _TripStart;
        DateTime _TripEnd;
        string _Description;
        string _Destination;
        decimal _BasePrice;
        decimal _AgencyCommission;

        public DateTime TripStart
        {
            get { return _TripStart; }
            set { _TripStart = value;}
        }

        public DateTime TripEnd
        {
            get { return _TripEnd; }
            set { _TripEnd = value; }
        }

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        public string Destination
        {
            get { return _Destination; }
            set { _Destination = value; }
        }

        public decimal BasePrice
        {
            get { return _BasePrice; }
            set { _BasePrice = value; }
        }

        public decimal AgencyCommission
        {
            get { return _AgencyCommission; }
            set { _AgencyCommission = value; }
        }

        public override string ToString()
        {
            return string.Format("{0} - {1} - {2}", TripStart.ToString("dd-MMM-yyyy"), TripEnd.ToString("dd-MMM-yyyy"), Destination);
        }
    }
}
